package com.common.dto;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.common.annotation.Order;
import com.common.dto.base.BaseDTO;
import com.common.util.StringUtil;



/**
 * 功能实体function_list
 */
@Table(name = "function_list") // 映射表名称
public class PrivilegeDTO extends BaseDTO implements Serializable {
	private static final long serialVersionUID = 3336991858879472223L;
	
	
	/** 功能名称 */
	@Column(name="function_name")
	private String functionName;

    /** 父级功能编号 */

	@Column(name="parent_function_code")
	private String parentFunctionCode;

	/** 功能编号 */
	@Column(name="function_code")
	private String functionCode;

	/** 功能类型  1=菜单，2=模块，3=功能 */
    @Order(type="desc")
	@Column(name="function_type")
	private String functionType;

	/** 权限代码 */
	@Column(name="permission_code")
	private String permissionCode;

	/** 功能URL */
	@Column(name="function_url")
	private String functionUrl;

	/** 是否选中 0=否 1=是 */
	@Column(name="is_checked")
	private Boolean isChecked;

    /** 备注 */
    @Column(name="content_desc")
    private String contentDesc;

	@Transient
	private String ids;

	@Transient
	private String personCode;

    /** 子对象列表 */
    @Transient
    private List<?> childList;

    public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public List<?> getChildList() {
        return childList;
    }
    public void setChildList(List<?> childList) {
        this.childList = childList;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public String getFunctionType() {
        return functionType;
    }

    public void setFunctionType(String functionType) {
        this.functionType = functionType;
    }
	public String getPersonCode() {
		return personCode;
	}

	public void setPersonCode(String personCode) {
		this.personCode = personCode;
	}

	public Boolean getIsChecked() {
		return isChecked;
	}

	public void setIsChecked(Boolean isChecked) {
		this.isChecked = isChecked;
	}

	public String getParentFunctionCode() {
		return parentFunctionCode;
	}

	public void setParentFunctionCode(String parentFunctionCode) {
		this.parentFunctionCode = parentFunctionCode;
	}

	public String getFunctionCode() {
		return functionCode;
	}

	public void setFunctionCode(String functionCode) {
		this.functionCode = functionCode;
	}

	public String getFunctionName() {
		return functionName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = StringUtil.isoToUTF8(functionName);
	}

	public String getFunctionUrl() {
		return functionUrl;
	}

	public void setFunctionUrl(String functionUrl) {
		this.functionUrl = functionUrl;
	}

    public String getContentDesc() {
        return contentDesc;
    }

    public void setContentDesc(String contentDesc) {
        this.contentDesc = contentDesc;
    }
	public String getPermissionCode() {
		return permissionCode;
	}

	public void setPermissionCode(String permissionCode) {
		this.permissionCode = permissionCode;
	}
}
